
class Tay {
    private static int day = 7;

    private int num;
    private int age;


    static {
        day = 8;
        System.out.println("hello");
    }

    public Tay( int num, int age) {

        this.num = num;
        this.age = age;
    }
    {
        this.age =22;
        System.out.println("被执行中>....");
    }
    public  Tay() {
    System.out.println("0932");
}

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Tay{" +
                "号码=" + num +
                ", 年龄=" + age +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static int getDay() {
        return day;
    }

    public static void setDay(int day) {
        Tay.day = day;
    }
}public class Test {

    public static void main(String[] args) {
        System.out.println(Tay.getDay());
      Tay tay = new Tay(22,333);
//        Tay tay = new Tay();
        System.out.println(tay);
        System.out.println();
        Tay tay1 = new Tay();
        System.out.println(tay.getAge());



    }
}
